<?php $this->beginContent('//layouts/wrapper'); ?>
<div class='header'>
	<a href='<?php echo Yii::app()->request->hostInfo; ?>' class='logo'><img src='/themes/2011/images/premium-tyres_logo1.png' alt='Логотип Premium-Tyres.ru' title='Добро пожаловать на premium-tyres.ru!'></a>
	<div class='search'>
		<form action="" method="get">
			<input type='text' class='query' value="Найти на сайте"/>
			<button type="submit" class='button'><img src='/themes/2011/images/searchbtn.png' alt="Найти" title='Найти'></button>
		</form>
	</div>
	<div class='phone'>
		<span class='bigdigits'><?php echo Yii::app()->params['phone']; ?></span>
		<a class='fancybox' href='#back_call'>Обратный звонок</a>
		<div style='display: none;'>
			<form id="back_call" action>
				<div class='row'>
					<label>Ваше имя:</label><br />
					<input type='text' name='name' />
				</div>
				<div class='row'>
					<label>Ваш номер телефона:</label><br />
					<input type='text' name='phone' />
				</div>
				<div class='row'>
					<input type='submit' value='Отправить' />
				</div>
			</form>
		</div>
		<script type="text/javascript">
			$("a.fancybox").fancybox();
		</script>
	</div>

	<?php $this->widget('widgets.shopping.cart'); ?>
	<?php 
	$this->widget('zii.widgets.CMenu', array(
		'htmlOptions'=>array('class'=>'mainmenu'),
		'items'=>$this->menu,
	));
	?>

 	<script src="http://api-maps.yandex.ru/1.1/index.xml?key=<?php echo Yii::app()->params['yandexMapsAPIKey']; ?>"
	type="text/javascript"></script>
    <script type="text/javascript">
        window.onload = function () {
            var map = new YMaps.Map(document.getElementById("bigbanner"));
            map.setCenter(new YMaps.GeoPoint(37.64, 55.76), 10);
        }
    </script>

	

	<div class='bigmenu'>
		<?php 
		$this->widget('zii.widgets.CMenu', array(
			'lastItemCssClass'=>'last',
			'htmlOptions'=>array('class'=>'topmenu'),
			'items'=>$this->bigmenu,
		));
		?>
	</div>
	
</div>
<div class='content'><?php echo $content; ?></div>
<?php $this->endContent(); ?>